package com.example.springbootmybatisplus.annotation;

import java.lang.annotation.*;

/**
 * @ClassName SensitiveField
 * @Description: TODO
 * @Author: Sunny
 * @Create: 2023-12-26 10:12
 * @Version 1.0
 **/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SensitiveField {

    SensitiveTypeEnum value() default SensitiveTypeEnum.IDCARD;

    enum SensitiveTypeEnum {
        IDCARD,
        PHONE,
        NAME,
        ADDRESS,
        BANK,
        CARLICENSE,
    }
}